export const constantRoutes = [
  {
    path: '/home',
    name: 'home',
    meta: {
      title: '首页',
    },
    component: () => import('@/views/home/index.vue'),
  },
  {
    path: '/selectPerson',
    name: 'selectPerson',
    meta: {
      title: '选择人员',
    },
    component: () => import('@/views/selectPerson/index.vue'),
  },
  {
    path: '/caches',
    name: 'caches',
    meta: {
      title: '缓存管理',
    },
    redirect: { name: 'add' },
    component: () => import('@/views/caches/index.vue'),
    children: [
      {
        path: '/add',
        name: 'add',
        meta: {
          title: '添加缓存',
        },
        component: () => import('@/views/caches/add/index.vue'),
      },
      {
        path: '/edit',
        name: 'edit',
        meta: {
          title: '编辑缓存',
        },
        component: () => import('@/views/caches/add/index.vue'),
      },
      {
        path: '/nocache',
        name: 'nocache',
        meta: {
          title: '无缓存',
        },
        component: () => import('@/views/caches/nocache/index.vue'),
      },
    ],
  },
  {
    path: '/uploadCase',
    name: 'uploadCase',
    meta: {
      title: '上传用例',
    },
    component: () => import('@/views/uploadCase/index.vue'),
  },
  {
    path: '/amap',
    name: 'amap',
    meta: {
      title: '高德地图',
    },
    component: () => import('@/views/amap/index.vue'),
    redirect: { name: 'amapFromSearch' },
    children: [
      {
        path: '/amapFromSearch',
        name: 'amapFromSearch',
        meta: {
          title: 'form表单搜索',
        },
        component: () => import('@/views/amap/AmapFromSearch/index.vue'),
      },
      {
        path: '/geocoder',
        name: 'geocoder',
        meta: {
          title: '逆地理编码',
        },
        component: () => import('@/views/amap/Geocoder/index.vue'),
      },
    ],
  },
  {
    path: '/smartHelmet',
    name: 'smartHelmet',
    meta: {
      title: '智能安全帽',
    },
    component: () => import('@/views/smartHelmet/index.vue'),

  },
  {
    path: '/reusable',
    name: 'reusable',
    meta: {
      title: '可复用模板',
    },
    redirect: { name: 'reusableTemplateSetup' },
    children: [

      {
        path: '/reusableTemplateSetup',
        name: 'reusableTemplateSetup',
        meta: {
          title: 'setup',
        },
        component: () => import('@/views/reusableTemplate/setup.vue'),
      },
      {
        path: '/reusableTemplateSetupDemo',
        name: 'reusableTemplateSetupDemo',
        meta: {
          title: 'setupDemo',
        },
        component: () => import('@/views/reusableTemplate/setupDemo.vue'),
      },
      {
        path: '/reusableTemplate',
        name: 'reusableTemplate',
        meta: {
          title: '可复用模板',
        },
        component: () => import('@/views/reusableTemplate/index.vue'),
      },
      {
        path: '/reusableDemo',
        name: 'reusableDemo',
        meta: {
          title: 'reusableDemo',
        },
        component: () => import('@/views/reusableTemplate/reusableDemo.vue'),
      },
    ],


  },
]
